import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:sainbainu/common/values/colors.dart';

class LoginTextBtn extends StatelessWidget {
  final String text;
  final VoidCallback onPressed;

  const LoginTextBtn({
    Key? key,
    required this.text,
    required this.onPressed,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 30,
      child: TextButton(
        style: TextButton.styleFrom(
          foregroundColor: Colors.white,
          padding: const EdgeInsets.symmetric(vertical: 0, horizontal: 10),
        ),
        onPressed: onPressed,
        child: Text(
          text.tr,
          style: const TextStyle(color: AppColors.active2),
        ),
      ),
    );
  }
}
